package top.kaoshanji.p1ch10c;

/**
 * 代码清单-p1ch10c-232页a：解决多重继承的冲突
 * author kaoshanji
 * ^_^
 * create time 2025/3/10 18:03
 */
public class Jim implements Jim1, Jim2 {

    @Override
    public void jim() {
        Jim2.super.jim(); // 需要手动指定一下
    }

    public static void main(String[] args) {
        new Jim().jim();
    }

}

interface Jim1 {

    default void jim() {
        System.out.println("Jim1::jim");
    }

}

interface Jim2 {

    default void jim() {
        System.out.println("Jim2::jim");
    }

}
